//
//  TwoVideoView.m
//  YUNWUMeetingDemo
//
//  Created by mac on 2019/7/18.
//  Copyright © 2019 DGL. All rights reserved.
//

#import "TwoVideoView.h"

@implementation TwoVideoView
- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self setUI];
    }
    return self;
}

#pragma mark -- UI
- (void)setUI{
    _twoOneView = [[CustomCameraView alloc]init];
    _twoOneView.backgroundColor = [UIColor yellowColor];
    [self addSubview:_twoOneView];
    [_twoOneView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.top.bottom.mas_equalTo(self);
        make.width.mas_equalTo(BOUNDS.size.width/2-1);
    }];
    
    _twoTwoView = [[CustomCameraView alloc]init];
    _twoTwoView.backgroundColor = [UIColor greenColor];
    [self addSubview:_twoTwoView];
    [_twoTwoView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.top.bottom.mas_equalTo(self);
        make.width.mas_equalTo(BOUNDS.size.width/2-1);
    }];

}


@end
